package com.mvc4g.example.client;

import com.google.gwt.user.client.ui.Widget;
import com.mvc4g.client.ActionInterface;
import com.mvc4g.client.Controller;

public class ChangePageAction implements ActionInterface {

	public void execute(Controller controller, Object form) {
		Widget page = (Widget) controller.getView((String) form);
		((MainView)controller.getView("mainView")).changePage(page);
	}

}
